package cc.koit.hulk.common.helper;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "hulk")
public class RabbitMQReceiver {

    public static final Logger logger = LoggerFactory.getLogger(RabbitMQReceiver.class);

    @RabbitHandler
    public void process(String content){
        logger.info(content);
    }

}
